home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / mint / shells / tcsh602.zoo / tcsh602 / csh.1 < prev    next >
Text File  |  1993-02-23  |  72KB  |  1,451 lines

  1.  
  2.  
  3.  
  4.                                                                        csh(1)
  5.  
  6.  
  7.  
  8.    Name
  9.      csh - C shell Command Interpreter
  10.  
  11.    Syntax
  12.      csh [-cefinstvVxX] [_✓a_✓r_✓g...]
  13.  
  14.    Description
  15.      The _✓c_✓s_✓h command is a command language interpreter that consists of a
  16.      history mechanism, job control facilities, and a C-like syntax.  While
  17.      this command has a set of _✓b_✓u_✓i_✓l_✓t-_✓i_✓n functions that it performs directly,
  18.      the command line interpreter also reads and translates commands that
  19.      invokes other programs.  Additionally, you can create shell scripts
  20.      which the _✓c_✓s_✓h command can interpret.  Shell scripts are files which con-
  21.      tain executable instructions.
  22.  
  23.      The percent sign (%) represents the system prompt.  It indicates that
  24.      you can begin entering commands to the system. Each command line that
  25.      you type is read and broken into words. This sequence of words is placed
  26.      on a command history list and then parsed.  When the entire command line
  27.      has executed, the percent sign reappears and you can enter another com-
  28.      mand.  See the History Substitution and Jobs sections for more informa-
  29.      tion.
  30.  
  31.      To use the _✓c_✓s_✓h command's full job control facilities, you must invoke
  32.      the tty driver described in _✓t_✓t_✓y(4).  This driver allows generation of
  33.      interrupt characters from the keyboard which stop execution of a job.
  34.      For details on setting options in the tty driver, see _✓s_✓t_✓t_✓y(1).
  35.  
  36.      Note that your environment setup is controlled by commands in the home
  37.      directory of your .cshrc file.  The _✓c_✓s_✓h command executes these commands
  38.      when you enter the system.  Additionally, if this is a login shell, the
  39.      Shell also executes the commands in your .login file.  These files usu-
  40.      ally contain your options for the tty driver and _✓t_✓s_✓e_✓t(1), (terminal set-
  41.      tings).  When a login shell session ends, commands are executed from the
  42.      .logout file in your home directory.
  43.  
  44.    Lexical Structure
  45.      The shell splits input lines into words at blanks and tabs with the fol-
  46.      lowing exceptions:
  47.  
  48.      o✓+    ampersand (&)
  49.  
  50.      o✓+    bar ( | )
  51.  
  52.      o✓+    semicolon ( ; )
  53.  
  54.      o✓+    Left (<) and right (>) angle brackets
  55.  
  56.      o✓+    Left (() and right ()) parenthesis
  57.  
  58.      The previous metacharacters form separate words.  If doubled as follows,
  59.      these metacharacters form single words:
  60.  
  61.      o✓+    Doubled ampersand (&&)
  62.  
  63.      o✓+    Double bars (||)
  64.  
  65.      o✓+    Double left (<<) and right (>>) brackets
  66.  
  67.      o✓+    Backslash (\)
  68.  
  69.      o✓+    Single (` `) and double (" ") quotation marks.
  70.  
  71.      Metacharacters can be a part of other words.  Additionally, if you do
  72.      not want a metacharacter to be interpreted as such by the system, you
  73.      can precede it with a backslash e (\e).  A new line that is preceded by
  74.      a is equivalent to a blank.
  75.  
  76.      Strings enclosed in single quotes (` `) or strings enclosed in double
  77.      quotes (" ") form parts of a word.  Metacharacters in these strings,
  78.      including blanks and tabs, do not form separate words.  This is
  79.      described in more detail later.  Within single quotes or double quotes,
  80.      a new line preceded by a backslash (\) gives a true new line character.
  81.  
  82.      When the shell's input is not a terminal, the pound sign (#) introduces
  83.      a comment which continues to the end of the input line.  It is prevented
  84.      this special meaning when preceded by a backslash (\) and single or dou-
  85.      ble quotation marks.
  86.  
  87.    Commands
  88.      A command is a word or sequence of words that directs the system to per-
  89.      form a certain function.  You can separate commands with a bar ( | )
  90.      which forms a pipeline.  The output that results from each command in
  91.      the pipeline is connected to the input of the next.  For example, in the
  92.      following pipeline, a file is copied and the output is piped to standard
  93.      output (the screen):
  94.  
  95.      % cp /example/dir/test . | more
  96.  
  97.      You can form and execute several pipelines by separating each pipeline
  98.      with a semicolon (;).  You can also force a command to complete execu-
  99.      tion in the background by typing an ampersand (&) at the end of the com-
  100.      mand line.
  101.  
  102.      You can form a simple command (which may be a component of a pipeline
  103.      and so on) by placing any of the above in parenthesis (()).  As in the C
  104.      language, you can also separate pipelines with a double bar (||) or dou-
  105.      ble ampersands (&&).  The double bar tells the command interpreter to
  106.      execute the second command only if the first command fails.  The double
  107.      ampersands tells the command interpreter to execute the second command
  108.      if the first command is successful.
  109.  
  110.    Jobs
  111.      The Shell associates each command or pipeline with a _✓j_✓o_✓b index.  By typ-
  112.      ing jobs at the system prompt, a table of the current jobs is printed on
  113.      your screen.  Each job listed has a small integer number associated with
  114.      it. For example, if you force a job into the background using an amper-
  115.      sand (&), the shell displays the job number and process id of that job
  116.      as follows:
  117.  
  118.      [1] 1234
  119.  
  120.  
  121.      In the previous example, the job number is 1 indicating that this is a
  122.      background job and the process id is 1234.
  123.  
  124.      If you are running a job in the foreground, you can suspend execution of
  125.      that job by typing a CTRL/Z.  The Shell then indicates that the job has
  126.      been stopped and the system prompt reappears. If you type jobs at the
  127.      prompt, the display indicates that a job has been stopped.  You can
  128.      either enter another command at the prompt or you can manipulate the
  129.      state of the job you suspended as follows:
  130.  
  131.      o✓+    Place the job in background by using the bg command.
  132.  
  133.      o✓+    Continue to execute the job by placing it in the foreground using
  134.           the fg command.
  135.  
  136.      A CTRL/Z takes effect immediately and is like an interrupt.  For exam-
  137.      ple, pending output and unread output are discarded when the CTRL/Z is
  138.      issued.  You can also type a CTRL/Y which does not generate a stop sig-
  139.      nal until a program attempts to perform a _✓r_✓e_✓a_✓d(2) operation.
  140.  
  141.      If a job that is being run in the background attempts to read from the
  142.      terminal, it will stop.  Background jobs can produce output.  You can
  143.      prevent background jobs from producing output by issuing the following
  144.      command:
  145.  
  146.      stty tostop
  147.  
  148.  
  149.      There are several ways to refer to jobs in the shell.  For example, to
  150.      bring job number 1 into the foreground, type %1 or fg %1.  Similarly, %1
  151.      & returns job 1 to the background.  If a job does not have an ambiguous
  152.      prefix, you can restart a job by it's prefix.  For example, %ex would
  153.      restart a suspended _✓e_✓x job, if it is the only suspended _✓e_✓x job.  You use
  154.      also use %?_✓s_✓t_✓r_✓i_✓n_✓g which specifies a job whose command line contains
  155.      _✓s_✓t_✓r_✓i_✓n_✓g. Again, _✓s_✓t_✓r_✓i_✓n_✓g cannot be an ambiguous name.
  156.  
  157.      The Shell tracks the current and previous jobs.  For example, in output
  158.      displays of jobs, the current job is marked with a plus sign (+) and the
  159.      previous job is marked with a minus sign (-).  Hence, you can type %+
  160.      for the current job and %- for the previous job.  You can also specify
  161.      %% which specifies the current job.
  162.  
  163.    Status Reporting
  164.      The Shell performs status reporting when the process state changes.  For
  165.      example, if a job becomes blocked and further processing is not possi-
  166.      ble, the Shell informs you just before it prints a prompt.  If, however,
  167.      you set the Shell variable _✓n_✓o_✓t_✓i_✓f_✓y, the Shell provides you with immediate
  168.      status of background jobs.  As opposed to notifying you of all changes
  169.      in background jobs, the Shell command _✓n_✓o_✓t_✓i_✓f_✓y can mark a single process
  170.      so that only its status change is reported.  To mark a single file, type
  171.      notify after starting a background job.  By default, only the current
  172.      process is marked.
  173.  
  174.      If you try to exit from the Shell while jobs are stopped, the following
  175.      warning appears:
  176.  
  177.      You have stopped jobs.
  178.  
  179.  
  180.      You can use the jobs command to view the stopped jobs. If you immedi-
  181.      ately try to exit again, the Shell does not provide a second warning and
  182.      suspended jobs are terminated.
  183.  
  184.    Substitutions
  185.      The various transformations the shell performs on the input is now
  186.      described in the order in which they occur.
  187.  
  188.    History Substitutions
  189.      History substitutions allow you to use words from previously typed com-
  190.      mands as portions of new commands.  This enables you to repeat commands,
  191.      arguments, or fix spelling mistakes from the previous command.
  192.  
  193.      An exclamation point (!) marks the beginning of a history substitution.
  194.      It can appear anywhere in the input stream (including the beginning) as
  195.      long as it is not nested.  An input line that contains history substitu-
  196.      tion is echoed to the screen before it is executed.
  197.  
  198.  
  199.      The exclamation point (!) may be preceded by a backslash (\) if you want
  200.      to escape its special meaning.  If an exclamation point is followed by a
  201.      blank, tab, new line, equal sign (=), or left parenthesis ((), it is
  202.      passed unchanged.
  203.  
  204.      Any command line that is typed at the terminal is saved on the history
  205.      list.  You can increase or decrease the size of your history list using
  206.      the _✓h_✓i_✓s_✓t_✓o_✓r_✓y variable; the previous command is always retained regardless
  207.      of its value.  Commands are numbered sequentially from 1. To display the
  208.      history on your terminal, type history at the prompt as follows:
  209.  
  210.      % history
  211.  
  212.  
  213.      This command lists the commands that were previously typed.  For exam-
  214.      ple:
  215.  
  216.      1  write michael
  217.      2  ex write.c
  218.      3  cat oldwrite.c
  219.      4  diff*write.c
  220.  
  221.  
  222.      The commands are shown with their event numbers.  Although it is not
  223.      usually necessary to use event numbers, you can reinvoke any command by
  224.      combining the exclamation point (!) with any event number.  For example,
  225.      if you are referencing the previous history list, !4 reinvokes the com-
  226.      mand line diff*write.c.  You can also reinvoke a command without the
  227.      event number as long as it is not ambiguous.  For example, !c invokes
  228.      event 3 or !wri invokes event 1.  The line !?mic? also refers to event
  229.      1.  If you type !!, the last command entered in reinvoked.
  230.  
  231.      To select words from an event, follow the event specification with a
  232.      colon (:) and a designator for the desired words.  The words of a input
  233.      line are numbered from 0, the first (usually command) word being 0, the
  234.      second word (first argument) being 1, and so forth.  The basic word
  235.      designators are:
  236.  
  237.           0    first (command) word
  238.           _✓n    _✓n'th argument
  239.           !    first argument,  that is `1'
  240.           $    last argument
  241.           %    word matched by (immediately preceding) ?_✓s? search
  242.           _✓x-_✓y  range of words
  243.           -_✓y   abbreviates `0-_✓y'
  244.           *    abbreviates `!-$', or nothing if only 1 word in event
  245.           _✓x*   abbreviates `_✓x-$'
  246.           _✓x-   like `_✓x*' but omitting word `$'
  247.  
  248.      The colon (:) separating the event specification from the word designa-
  249.      tor can be omitted if the argument selector begins with a `!', `$', `*'
  250.      `-' or `%'.  After the optional word designator can be placed a sequence
  251.      of modifiers, each preceded by a colon (:).  The following modifiers are
  252.      defined:
  253.  
  254.           h      Remove a trailing pathname component, leaving the head.
  255.           r      Remove a trailing `.xxx' component, leaving the root name.
  256.           e      Remove all but the extension `.xxx' part.
  257.           s/_✓l/_✓r/ Substitute _✓l for _✓r
  258.           t      Remove all leading pathname components, leaving the tail.
  259.           &      Repeat the previous substitution.
  260.           g      Apply the change globally, prefixing the above, for example, `g&'.
  261.           p      Print the new command but do not execute it.
  262.           q      Quote the substituted words, preventing further substitutions.
  263.           x      Like q, but break into words at blanks, tabs and new lines.
  264.  
  265.      Unless preceded by a `g' the modification is applied only to the first
  266.      modifiable word.  With substitutions, it is an error for no word to be
  267.      applicable.
  268.  
  269.      The left hand side of substitutions are not regular expressions in the
  270.      sense of the editors, but rather strings.  Any character may be used as
  271.      the delimiter in place of `/'; a `\' quotes the delimiter into the _✓l and
  272.      _✓r strings.  The character `&' in the right hand side is replaced by the
  273.      text from the left.  A `\' quotes `&' also.  A null _✓l uses the previous
  274.      string either from a _✓l or from a contextual scan string _✓s in `!?_✓s?'.
  275.      The trailing delimiter in the substitution may be omitted if a new line
  276.      follows immediately as may the trailing `?' in a contextual scan.
  277.  
  278.      A special abbreviation of a history reference occurs when the first
  279.      non-blank character of an input line is a circumflex (^).  This is
  280.      equivalent to `!!:s/' providing a convenient shorthand for substitutions
  281.      on the text of the previous line.  Thus `^lb^lib^' fixes the spelling of
  282.      lb in the previous command.  Finally, a history substitution may be sur-
  283.      rounded with `{' and `}' if necessary to insulate it from the characters
  284.      which follow.  Thus, after `ls -ld ~paul' we might do `!{l}a' to do `ls
  285.      -ld ~paula', while `!la' would look for a command starting `la'.
  286.  
  287.      Quotations with ' and "
  288.  
  289.      The quotation of strings by `'' and `"' can be used to prevent all or
  290.      some of the remaining substitutions.  Strings enclosed in `'' are
  291.      prevented any further interpretation.  Strings enclosed in `"' may be
  292.      expanded as described below.
  293.  
  294.      In both cases the resulting text becomes (all or part of) a single word;
  295.      only in one special case (see _✓C_✓o_✓m_✓m_✓a_✓n_✓d _✓S_✓u_✓b_✓s_✓t_✓i_✓t_✓u_✓t_✓i_✓o_✓n below) does a `"'
  296.      quoted string yield parts of more than one word; `'' quoted strings
  297.      never do.
  298.  
  299.    Alias Substitution
  300.      The shell maintains a list of aliases that can be established,
  301.      displayed, and modified by the _✓a_✓l_✓i_✓a_✓s and _✓u_✓n_✓a_✓l_✓i_✓a_✓s commands.
  302.  
  303.      After the shell scans a command line, it parses the line into distinct
  304.      commands. Then, the shell checks the first word of each command, in
  305.      left-to-right order, to determine if the command line contains an alias.
  306.      When the shell finds an alias, it substitutes the definition of the
  307.      alias for the alias in the command line. The shell reads the definition
  308.      of the alias using the history mechanism and treats the definition as if
  309.      it was the previous input line.  If the alias definition makes no refer-
  310.      ence to the history list, the shell leaves the command's argument
  311.      unchanged.
  312.  
  313.      For example, the following command creates an alias called ``ls:''
  314.  
  315.      % alias ls 'ls -l'
  316.  
  317.      After you issue this _✓a_✓l_✓i_✓a_✓s command, you receive information about files
  318.      such as their mode, number of links, owner, and so on when you use the
  319.      ls alias.  For example, the following shows the output from the ls alias
  320.      created in the preceeding example:
  321.  
  322.      % ls /usr/smith/text_file
  323.      -rw-r--r--  1 smith          21 Mar 12 11:53 text_file
  324.  
  325.      You can also create aliases that allow you to supply arguments on the
  326.      command line and arguments in the alias definition, as shown in the fol-
  327.      lowing example:
  328.  
  329.      % alias lookup 'grep \!^ /etc/passwd'
  330.  
  331.      You must specify ``\'' before the ! to prevent the substitution from
  332.      occurring in the _✓a_✓l_✓i_✓a_✓s command. The following shows the output from the
  333.      lookup alias:
  334.  
  335.      % lookup smith
  336.      smith:2vruqPosbG/bE:1321:10::/usr/smith:/bin/csh
  337.  
  338.      The lookup alias finds and displays user Smith's entry in the
  339.      /_✓e_✓t_✓c/_✓p_✓a_✓s_✓s_✓w_✓d file.
  340.  
  341.      You can specify an alias within an alias definition. After the shell
  342.      finds an alias and substitutes its definition, it searches again for
  343.      aliases. The shell flags definitions that begin with the same word as
  344.      the alias to prevent infinite loops. Other loops are detected and cause
  345.      an error.
  346.  
  347.      You can use parser metasyntax in an _✓a_✓l_✓i_✓a_✓s command. For example, the fol-
  348.      lowing is a valid command that creates the print alias:
  349.  
  350.      % alias print 'pr \!* | lpr'
  351.  
  352.      The print alias pipes output from the _✓p_✓r command to the _✓l_✓p_✓r command.
  353.  
  354.    Variable Substitution
  355.      The shell maintains a set of variables, each of which has as value a
  356.      list of zero or more words.  Some of these variables are set by the
  357.      shell or referred to by it.  For instance, the _✓a_✓r_✓g_✓v variable is an image
  358.      of the shell's argument list, and words of this variable's value are
  359.      referred to in special ways.
  360.  
  361.      The values of variables may be displayed and changed by using the _✓s_✓e_✓t
  362.      and _✓u_✓n_✓s_✓e_✓t commands.  Of the variables referred to by the shell a number
  363.      are toggles; the shell does not care what their value is, only whether
  364.      they are set or not.  For instance, the _✓v_✓e_✓r_✓b_✓o_✓s_✓e variable is a toggle
  365.      which causes command input to be echoed.  The setting of this variable
  366.      results from the -v command line option.
  367.  
  368.      Other operations treat variables numerically.  The `@' command permits
  369.      numeric calculations to be performed and the result assigned to a vari-
  370.      able.  Variable values are, however, always represented as (zero or
  371.      more) strings.  For the purposes of numeric operations, the null string
  372.      is considered to be zero, and the second and subsequent words of multi-
  373.      word values are ignored.
  374.  
  375.      After the input line is aliased and parsed, and before each command is
  376.      executed, variable substitution is performed keyed by `$' characters.
  377.      This expansion can be prevented by preceding the `$' with a `\' except
  378.      within `"'s where it always occurs, and within `''s where it never
  379.      occurs.  Strings quoted by ``' are interpreted later (see _✓C_✓o_✓m_✓m_✓a_✓n_✓d _✓s_✓u_✓b_✓-
  380.      _✓s_✓t_✓i_✓t_✓u_✓t_✓i_✓o_✓n below) so `$' substitution does not occur there until later,
  381.      if at all.  A `$' is passed unchanged if followed by a blank, tab, or
  382.      end-of-line.
  383.  
  384.      Input/output redirections are recognized before variable expansion, and
  385.      are variable expanded separately.  Otherwise, the command name and
  386.      entire argument list are expanded together.  It is thus possible for the
  387.      first (command) word to this point to generate more than one word, the
  388.      first of which becomes the command name, and the rest of which become
  389.      arguments.
  390.  
  391.      Unless enclosed in `"' or given the `:q' modifier the results of vari-
  392.      able substitution may eventually be command and file name substituted.
  393.      Within `"' a variable whose value consists of multiple words expands to
  394.      a (portion of) a single word, with the words of the variables value
  395.      separated by blanks.  When the `:q' modifier is applied to a substitu-
  396.      tion the variable will expand to multiple words with each word separated
  397.      by a blank and quoted to prevent later command or file name substitu-
  398.      tion.
  399.  
  400.      The following metasequences are provided for introducing variable values
  401.      into the shell input.  Except as noted, it is an error to reference a
  402.      variable which is not set.
  403.  
  404.      $name
  405.      ${name}
  406.           Are replaced by the words of the value of variable _✓n_✓a_✓m_✓e, each
  407.           separated by a blank.  Braces insulate _✓n_✓a_✓m_✓e from following charac-
  408.           ters which would otherwise be part of it.  Shell variables have
  409.           names consisting of up to 20 letters and digits starting with a
  410.           letter.  The underscore character is considered a letter.
  411.           If _✓n_✓a_✓m_✓e is not a shell variable, but is set in the environment,
  412.           then that value is returned (but : modifiers and the other forms
  413.           given below are not available in this case).
  414.  
  415.      $name[selector]
  416.      ${name[selector]}
  417.           May be used to select only some of the words from the value of
  418.           _✓n_✓a_✓m_✓e. The selector is subjected to `$' substitution and may consist
  419.           of a single number or two numbers separated by a `-'.  The first
  420.           word of a variables value is numbered `1'.  If the first number of
  421.           a range is omitted it defaults to `1'.  If the last member of a
  422.           range is omitted it defaults to `$#name'.  The selector `*' selects
  423.           all words.  It is not an error for a range to be empty if the
  424.           second argument is omitted or in range.
  425.  
  426.      $#name
  427.      ${#name}
  428.           Gives the number of words in the variable.  This is useful for
  429.           later use in a `[selector]'.
  430.  
  431.      $0
  432.           Substitutes the name of the file from which command input is being
  433.           read.  An error occurs if the name is not known.
  434.  
  435.      $number
  436.      ${number}
  437.           Equivalent to `$argv[number]'.
  438.  
  439.      $*
  440.           Equivalent to `$argv[*]'.
  441.  
  442.      The modifiers `:h', `:t', `:r', `:q' and `:x' may be applied to the sub-
  443.      stitutions above as may `:gh', `:gt' and `:gr'.  If braces `{' '}'
  444.      appear in the command form then the modifiers must appear within the
  445.      braces.
  446.  
  447.                                        _✓N_✓o_✓t_✓e
  448.  
  449.           The current implementation allows only one colon (:) modifier
  450.           on each `$' expansion."
  451.  
  452.      The following substitutions may not be modified with colon (:) modif-
  453.      iers.
  454.  
  455.      $?name
  456.  
  457.      ${?name}
  458.           Substitutes the string `1' if name is set, `0' if it is not.
  459.  
  460.      $?0
  461.           Substitutes `1' if the current input file name is known, `0' if it
  462.           is not.
  463.  
  464.      $$
  465.           Substitute the (decimal) process number of the (parent) shell.
  466.  
  467.      $<
  468.           Substitutes a line from the standard input, with no further
  469.           interpretation thereafter.  It can be used to read from the key-
  470.           board in a shell script.
  471.  
  472.    Command And File Name Substitution
  473.      The remaining substitutions, command and file name substitution, are
  474.      applied selectively to the arguments of built-in commands.  This means
  475.      that portions of expressions which are not evaluated are not subjected
  476.      to these expansions.  For commands which are not internal to the shell,
  477.      the command name is substituted separately from the argument list.  This
  478.      occurs very late, after input-output redirection is performed, and in a
  479.      child of the main shell.
  480.  
  481.    Command Substitution
  482.      Command substitution is indicated by a command enclosed in ``'.  The
  483.      output from such a command is normally broken into separate words at
  484.      blanks, tabs and new lines, with null words being discarded, this text
  485.      then replacing the original string.  Within `"'s, only new lines force
  486.      new words; blanks and tabs are preserved.
  487.  
  488.      In any case, the single final new line does not force a new word.  Note
  489.      that it is thus possible for a command substitution to yield only part
  490.      of a word, even if the command outputs a complete line.
  491.  
  492.    File Name Substitution
  493.      If a word contains any of the characters `*', `?', `[' or `{' or begins
  494.      with the character `~', then that word is a candidate for file name sub-
  495.      stitution, also known as `globbing'.  This word is then regarded as a
  496.      pattern, and replaced with an alphabetically sorted list of file names
  497.      which match the pattern.  In a list of words specifying file name sub-
  498.      stitution it is an error for no pattern to match an existing file name,
  499.      but it is not required for each pattern to match.  Only the metacharac-
  500.      ters `*', `?' and `[' imply pattern matching, the characters `~' and `{'
  501.      being more akin to abbreviations.
  502.  
  503.      In matching file names, the character `.' at the beginning of a file
  504.      name or immediately following a `/', as well as the character `/' must
  505.      be matched explicitly.  The character `*' matches any string of charac-
  506.      ters, including the null string.  The character `?' matches any single
  507.      character.  The sequence `[...]' matches any one of the characters
  508.      enclosed.  Within `[...]', a pair of characters separated by `-' matches
  509.      any character lexically between the two.
  510.  
  511.      The character `~' at the beginning of a file name is used to refer to
  512.      home directories.  Standing alone, that is `~', it expands to the invok-
  513.      ers home directory as reflected in the value of the variable _✓h_✓o_✓m_✓e. When
  514.      followed by a name consisting of letters, digits and `-' characters the
  515.      shell searches for a user with that name and substitutes their home
  516.      directory;  thus `~ken' might expand to `/usr/ken' and `~ken/chmach' to
  517.      `/usr/ken/chmach'.  If the character `~' is followed by a character
  518.      other than a letter or `/' or appears not at the beginning of a word, it
  519.      is left undisturbed.
  520.  
  521.      The metanotation `a{b,c,d}e' is a shorthand for `abe ace ade'.  Left to
  522.      right order is preserved, with results of matches being sorted
  523.      separately at a low level to preserve this order.  This construct may be
  524.      nested.  Thus `~source/s1/{oldls,ls}.c' expands to
  525.      `/usr/source/s1/oldls.c /usr/source/s1/ls.c' whether or not these files
  526.      exist without any chance of error if the home directory for `source' is
  527.      `/usr/source'.  Similarly `../{memo,*box}' might expand to `../memo
  528.      ../box ../mbox'.  (Note that `memo' was not sorted with the results of
  529.      matching `*box'.) As a special case `{', `}' and `{}' are passed undis-
  530.      turbed.
  531.  
  532.    Input/output
  533.      The standard input and standard output of a command may be redirected
  534.      with the following syntax:
  535.  
  536.      < name
  537.           Open file _✓n_✓a_✓m_✓e (which is first variable, command and file name
  538.           expanded) as the standard input.
  539.  
  540.      << word
  541.           Read the shell input up to a line which is identical to _✓w_✓o_✓r_✓d. _✓W_✓o_✓r_✓d
  542.           is not subjected to variable, file name or command substitution,
  543.           and each input line is compared to _✓w_✓o_✓r_✓d before any substitutions
  544.           are done on this input line.  Unless a quoting `\', `"', `'' or ``'
  545.           appears in _✓w_✓o_✓r_✓d variable and command substitution is performed on
  546.           the intervening lines, allowing `\' to quote `$', `\' and ``'.
  547.           Commands which are substituted have all blanks, tabs, and new lines
  548.           preserved, except for the final new line which is dropped.  The
  549.           resultant text is placed in an anonymous temporary file which is
  550.           given to the command as standard input.
  551.  
  552.      > name
  553.      >! name
  554.      >& name
  555.      >&! name
  556.           The file _✓n_✓a_✓m_✓e is used as standard output.  If the file does not
  557.           exist then it is created; if the file exists, it is truncated, its
  558.           previous contents being lost.
  559.  
  560.           If the variable _✓n_✓o_✓c_✓l_✓o_✓b_✓b_✓e_✓r is set, then the file must not exist or
  561.           be a character special file (for example, a terminal or
  562.           `/dev/null') or an error results.  This helps prevent accidental
  563.           destruction of files.  In this case the `!' forms can be used and
  564.           suppress this check.
  565.  
  566.           The forms involving `&' route the diagnostic output into the speci-
  567.           fied file as well as the standard output.  _✓N_✓a_✓m_✓e is expanded in the
  568.           same way as `<' input file names are.
  569.  
  570.      >> name
  571.      >>& name
  572.      >>! name
  573.      >>&! name
  574.           Uses file _✓n_✓a_✓m_✓e as standard output like `>' but places output at the
  575.           end of the file.  If the variable _✓n_✓o_✓c_✓l_✓o_✓b_✓b_✓e_✓r is set, then it is an
  576.           error for the file not to exist unless one of the `!' forms is
  577.           given.  Otherwise similar to `>'.
  578.  
  579.      A command receives the environment in which the shell was invoked as
  580.      modified by the input-output parameters and the presence of the command
  581.      in a pipeline.  Thus, unlike some previous shells, commands run from a
  582.      file of shell commands have no access to the text of the commands by
  583.      default; rather they receive the original standard input of the shell.
  584.      The `<<' mechanism should be used to present inline data.  This permits
  585.      shell command scripts to function as components of pipelines and allows
  586.      the shell to block read its input.  Note that the default standard input
  587.      for a command run detached is not modified to be the empty file
  588.      `/dev/null'; rather the standard input remains as the original standard
  589.      input of the shell.  If this is a terminal and if the process attempts
  590.      to read from the terminal, then the process will block and the user will
  591.      be notified (see Jobs above.)
  592.  
  593.      Diagnostic output may be directed through a pipe with the standard out-
  594.      put.  Simply use the form `|&' rather than just `|'.
  595.  
  596.    Expressions
  597.      A number of the built-in commands (to be described subsequently) take
  598.      expressions, in which the operators are similar to those of C, with the
  599.      same precedence.  These expressions appear in the @, _✓e_✓x_✓i_✓t, _✓i_✓f, and _✓w_✓h_✓i_✓l_✓e
  600.      commands.  The following operators are available:
  601.  
  602.           ||  &&  |  !  &  ==  !=  =~  !~  <=  >=  <  >  <<  >>  +  -  *  /
  603.      %  !  ~  (  )
  604.  
  605.      Here the precedence increases to the right, `==' `!=' `=~' and `!~',
  606.      `<=' `>=' `<' and `>', `<<' and `>>', `+' and `-', `*' `/' and `%'
  607.      being, in groups, at the same level.  The `==' `!=' `=~' and `!~' opera-
  608.      tors compare their arguments as strings; all others operate on numbers.
  609.      The operators `=~' and `!~' are like `!=' and `==' except that the right
  610.      hand side is a _✓p_✓a_✓t_✓t_✓e_✓r_✓n (containing, for example, `*'s, `?'s and
  611.      instances of `[...]') against which the left hand operand is matched.
  612.      This reduces the need for use of the _✓s_✓w_✓i_✓t_✓c_✓h statement in shell scripts
  613.      when all that is really needed is pattern matching.
  614.  
  615.      Strings which begin with `0' are considered octal numbers.  Null or
  616.      missing arguments are considered `0'.  The result of all expressions are
  617.      strings, which represent decimal numbers.  It is important to note that
  618.      no two components of an expression can appear in the same word; except
  619.      when adjacent to components of expressions which are syntactically sig-
  620.      nificant to the parser (`&' `|' `<' `>' `(' `)') they should be sur-
  621.      rounded by spaces.
  622.  
  623.      Also available in expressions as primitive operands are command execu-
  624.      tions enclosed in `{' and `}' and file enquiries of the form `-_✓l  name'
  625.      where _✓l is one of:
  626.  
  627.           r    read access
  628.           w    write access
  629.           x    execute access
  630.           e    existence
  631.           o    ownership
  632.           z    zero size
  633.           f    plain file
  634.           d    directory
  635.  
  636.      The specified name is command and file name expanded and then tested to
  637.      see if it has the specified relationship to the real user.  If the file
  638.      does not exist or is inaccessible then all enquiries return false, that
  639.      is `0'.  Command executions succeed, returning true, that is `1', if the
  640.      command exits with status 0, otherwise they fail, returning false, that
  641.      is `0'.  If more detailed status information is required then the com-
  642.      mand should be executed outside of an expression and the variable _✓s_✓t_✓a_✓t_✓u_✓s
  643.      examined.
  644.  
  645.    Control Flow
  646.      The shell contains a number of commands which can be used to regulate
  647.      the flow of control in command files (shell scripts) and (in limited but
  648.      useful ways) from terminal input.  These commands all operate by forcing
  649.      the shell to reread or skip in its input and, due to the implementation,
  650.      restrict the placement of some of the commands.
  651.  
  652.      The _✓f_✓o_✓r_✓e_✓a_✓c_✓h, _✓s_✓w_✓i_✓t_✓c_✓h, and _✓w_✓h_✓i_✓l_✓e statements, as well as the _✓i_✓f-_✓t_✓h_✓e_✓n-_✓e_✓l_✓s_✓e
  653.      form of the _✓i_✓f statement require that the major keywords appear in a
  654.      single simple command on an input line as shown below.
  655.  
  656.      If the shell's input is not seekable, the shell buffers up input when-
  657.      ever a loop is being read and performs seeks in this internal buffer to
  658.      accomplish the rereading implied by the loop.  (To the extent that this
  659.      allows, backward goto's will succeed on non-seekable inputs.)
  660.  
  661.    Built-in Commands
  662.      Built-in commands are executed within the shell.  If a built-in command
  663.      occurs as any component of a pipeline except the last then it is exe-
  664.      cuted in a subshell.
  665.  
  666.      alias
  667.      alias name
  668.      alias name wordlist
  669.           The first form prints all aliases.  The second form prints the
  670.           alias for name.  The final form assigns the specified _✓w_✓o_✓r_✓d_✓l_✓i_✓s_✓t as
  671.           the alias of _✓n_✓a_✓m_✓e; _✓w_✓o_✓r_✓d_✓l_✓i_✓s_✓t is command and file name substituted.
  672.           _✓N_✓a_✓m_✓e is not allowed to be _✓a_✓l_✓i_✓a_✓s or _✓u_✓n_✓a_✓l_✓i_✓a_✓s.
  673.  
  674.      alloc
  675.           Shows the amount of dynamic core in use, broken down into used and
  676.           free core, and address of the last location in the heap.  With an
  677.           argument shows each used and free block on the internal dynamic
  678.           memory chain indicating its address, size, and whether it is used
  679.           or free.  This is a debugging command and may not work in produc-
  680.           tion versions of the shell; it requires a modified version of the
  681.           system memory allocator.
  682.  
  683.      bg
  684.      bg %job ...
  685.           Puts the current or specified jobs into the background, continuing
  686.           them if they were stopped.
  687.  
  688.      break
  689.           Causes execution to resume after the _✓e_✓n_✓d of the nearest enclosing
  690.           _✓f_✓o_✓r_✓e_✓a_✓c_✓h or _✓w_✓h_✓i_✓l_✓e. The remaining commands on the current line are
  691.           executed.  Multi-level breaks are thus possible by writing them all
  692.           on one line.
  693.  
  694.      breaksw
  695.           Causes a break from a _✓s_✓w_✓i_✓t_✓c_✓h, resuming after the _✓e_✓n_✓d_✓s_✓w.
  696.  
  697.      case label:
  698.           A label in a _✓s_✓w_✓i_✓t_✓c_✓h statement as discussed below.
  699.  
  700.      cd
  701.      cd name
  702.      chdir
  703.      chdir name
  704.           Change the shell's working directory to directory _✓n_✓a_✓m_✓e. If no argu-
  705.           ment is given then change to the home directory of the user.
  706.           If _✓n_✓a_✓m_✓e is not found as a subdirectory of the current directory
  707.           (and does not begin with `/', `./' or `../'), then each component
  708.           of the variable _✓c_✓d_✓p_✓a_✓t_✓h is checked to see if it has a subdirectory
  709.           _✓n_✓a_✓m_✓e. Finally, if all else fails but _✓n_✓a_✓m_✓e is a shell variable whose
  710.           value begins with `/', then this is tried to see if it is a direc-
  711.           tory.
  712.  
  713.      continue
  714.           Continue execution of the nearest enclosing _✓w_✓h_✓i_✓l_✓e or _✓f_✓o_✓r_✓e_✓a_✓c_✓h. The
  715.           rest of the commands on the current line are executed.
  716.  
  717.      default:
  718.           Labels the default case in a _✓s_✓w_✓i_✓t_✓c_✓h statement.  The default should
  719.           come after all _✓c_✓a_✓s_✓e labels.
  720.  
  721.      dirs
  722.           Prints the directory stack; the top of the stack is at the left,
  723.           the first directory in the stack being the current directory.
  724.  
  725.      echo wordlist
  726.  
  727.      echo -n wordlist
  728.           The specified words are written to the shell's standard output,
  729.           separated by spaces, and terminated with a new line unless the -n
  730.           option is specified.
  731.  
  732.      else
  733.      end
  734.      endif
  735.      endsw
  736.           See the description of the _✓f_✓o_✓r_✓e_✓a_✓c_✓h, _✓i_✓f, _✓s_✓w_✓i_✓t_✓c_✓h, and _✓w_✓h_✓i_✓l_✓e state-
  737.           ments below.
  738.  
  739.      eval arg ...
  740.           As in sh(1).  The arguments are read as input to the shell and the
  741.           resulting command(s) executed in the context of the current shell.
  742.           This is usually used to execute commands generated as the result of
  743.           command or variable substitution, since parsing occurs before these
  744.           substitutions.  See _✓t_✓e_✓s_✓t(1) for an example of using _✓e_✓v_✓a_✓l.
  745.  
  746.      exec command
  747.           The specified command is executed in place of the current shell.
  748.  
  749.      exit
  750.      exit(expr)
  751.           The shell exits either with the value of the _✓s_✓t_✓a_✓t_✓u_✓s variable (first
  752.           form) or with the value of the specified _✓e_✓x_✓p_✓r (second form).
  753.  
  754.      fg
  755.      fg %job ...
  756.           Brings the current or specified jobs into the foreground, continu-
  757.           ing them if they were stopped.
  758.  
  759.      foreach name (wordlist)
  760.          ...
  761.      end
  762.           The variable _✓n_✓a_✓m_✓e is successively set to each member of _✓w_✓o_✓r_✓d_✓l_✓i_✓s_✓t
  763.           and the sequence of commands between this command and the matching
  764.           _✓e_✓n_✓d are executed.  (Both _✓f_✓o_✓r_✓e_✓a_✓c_✓h and _✓e_✓n_✓d must appear alone on
  765.           separate lines.)
  766.  
  767.           The built-in command _✓c_✓o_✓n_✓t_✓i_✓n_✓u_✓e may be used to continue the loop
  768.           prematurely and the built-in command _✓b_✓r_✓e_✓a_✓k to terminate it prema-
  769.           turely.  When this command is read from the terminal, the loop is
  770.           read up once prompting with `?' before any statements in the loop
  771.           are executed.  If you make a mistake typing in a loop at the termi-
  772.           nal you can rub it out.
  773.  
  774.      glob wordlist
  775.           Like _✓e_✓c_✓h_✓o but no `\' escapes are recognized and words are delimited
  776.           by null characters in the output.  Useful for programs which wish
  777.           to use the shell to file name expand a list of words.
  778.  
  779.      goto word
  780.           The specified _✓w_✓o_✓r_✓d is file name and command expanded to yield a
  781.           string of the form `label'.  The shell rewinds its input as much as
  782.           possible and searches for a line of the form `label:' possibly pre-
  783.           ceded by blanks or tabs.  Execution continues after the specified
  784.           line.
  785.  
  786.  
  787.      hashstat
  788.           Print a statistics line indicating how effective the internal hash
  789.           table has been at locating commands (and avoiding _✓e_✓x_✓e_✓c's).  An _✓e_✓x_✓e_✓c
  790.           is attempted for each component of the _✓p_✓a_✓t_✓h where the hash function
  791.           indicates a possible hit, and in each component which does not
  792.           begin with a `/'.
  793.  
  794.      history
  795.      history _✓n
  796.      history -r _✓n
  797.      history -h _✓n
  798.           Displays the history event list; if _✓n is given only the _✓n most
  799.           recent events are printed.  The -r option reverses the order of
  800.           printout to be most recent first rather than oldest first.  The -h
  801.           option causes the history list to be printed without leading
  802.           numbers.  This is used to produce files suitable for sourcing using
  803.           the -h option to _✓s_✓o_✓u_✓r_✓c_✓e.
  804.  
  805.      if (expr) command
  806.           If the specified expression evaluates true, then the single _✓c_✓o_✓m_✓m_✓a_✓n_✓d
  807.           with arguments is executed.  Variable substitution on _✓c_✓o_✓m_✓m_✓a_✓n_✓d hap-
  808.           pens early, at the same time it does for the rest of the _✓i_✓f com-
  809.           mand.  _✓C_✓o_✓m_✓m_✓a_✓n_✓d must be a simple command, not a pipeline, a command
  810.           list, or a parenthesized command list.  Input/output redirection
  811.           occurs even if _✓e_✓x_✓p_✓r is false, when command is not executed (this is
  812.           a bug).
  813.  
  814.      if (expr) then
  815.          ...
  816.      else if (expr2) then
  817.          ...
  818.      else
  819.          ...
  820.      endif
  821.           If the specified _✓e_✓x_✓p_✓r is true then the commands to the first _✓e_✓l_✓s_✓e
  822.           are executed; else if _✓e_✓x_✓p_✓r_✓2 is true then the commands to the second
  823.           else are executed, etc.  Any number of _✓e_✓l_✓s_✓e-_✓i_✓f pairs are possible;
  824.           only one _✓e_✓n_✓d_✓i_✓f is needed.  The _✓e_✓l_✓s_✓e part is likewise optional.
  825.           (The words _✓e_✓l_✓s_✓e and _✓e_✓n_✓d_✓i_✓f must appear at the beginning of input
  826.           lines; the _✓i_✓f must appear alone on its input line or after an
  827.           _✓e_✓l_✓s_✓e.)
  828.  
  829.      jobs
  830.      jobs -l
  831.           Lists the active jobs; given the -l options lists process id's in
  832.           addition to the normal information.
  833.  
  834.      kill %job
  835.      kill -sig %job ...
  836.      kill pid
  837.      kill -sig pid ...
  838.      kill -l
  839.           Sends either the TERM (terminate) signal or the specified signal to
  840.           the specified jobs or processes.  Signals are either given by
  841.           number or by names (as given in /_✓u_✓s_✓r/_✓i_✓n_✓c_✓l_✓u_✓d_✓e/_✓s_✓i_✓g_✓n_✓a_✓l._✓h, stripped of
  842.           the prefix ``SIG'').  The signal names are listed by ``kill -l''.
  843.           There is no default, saying just `kill' does not send a signal to
  844.           the current job.  If the signal being sent is TERM (terminate) or
  845.           HUP (hangup), then the job or process will be sent a CONT (con-
  846.           tinue) signal as well.
  847.  
  848.      limit
  849.      limit _✓r_✓e_✓s_✓o_✓u_✓r_✓c_✓e
  850.      limit _✓r_✓e_✓s_✓o_✓u_✓r_✓c_✓e _✓m_✓a_✓x_✓i_✓m_✓u_✓m-_✓u_✓s_✓e
  851.           Limits the consumption by the current process and each process it
  852.           creates to not individually exceed _✓m_✓a_✓x_✓i_✓m_✓u_✓m-_✓u_✓s_✓e on the specified
  853.           _✓r_✓e_✓s_✓o_✓u_✓r_✓c_✓e.  If no _✓m_✓a_✓x_✓i_✓m_✓u_✓m-_✓u_✓s_✓e is given, then the current limit is
  854.           printed; if no _✓r_✓e_✓s_✓o_✓u_✓r_✓c_✓e is given, then all limitations are given.
  855.  
  856.           The following resources can be controlled:
  857.  
  858.      o✓+    _✓c_✓p_✓u_✓t_✓i_✓m_✓e (maximum number of cpu-seconds to be used by each process)
  859.  
  860.      o✓+    _✓f_✓i_✓l_✓e_✓s_✓i_✓z_✓e (largest single file which can be created)
  861.  
  862.      o✓+    _✓d_✓a_✓t_✓a_✓s_✓i_✓z_✓e (the maximum growth of the data+stack region by _✓s_✓b_✓r_✓k(2)
  863.           beyond the end of the program text)
  864.  
  865.      o✓+    _✓s_✓t_✓a_✓c_✓k_✓s_✓i_✓z_✓e (the maximum size of the automatically-extended stack
  866.           region)
  867.  
  868.      o✓+    _✓c_✓o_✓r_✓e_✓d_✓u_✓m_✓p_✓s_✓i_✓z_✓e (the size of the largest core dump that can be
  869.           created).
  870.  
  871.      o✓+    _✓m_✓e_✓m_✓o_✓r_✓y_✓u_✓s_✓e (the maximum amount of main memory a process is allowed
  872.           to occupy)
  873.  
  874.           The _✓m_✓a_✓x_✓i_✓m_✓u_✓m-_✓u_✓s_✓e may be given as a (floating point or integer)
  875.           number followed by a scale factor.  For all limits other than _✓c_✓p_✓u_✓-
  876.           _✓t_✓i_✓m_✓e the default scale is `k' or `kilobytes' (1024 bytes); a scale
  877.           factor of `m' or `megabytes' may also be used.  For _✓c_✓p_✓u_✓t_✓i_✓m_✓e the
  878.           default scaling is `seconds', while `m' for minutes or `h' for
  879.           hours, or a time of the form `mm:ss' giving minutes and seconds may
  880.           be used.
  881.  
  882.           For both _✓r_✓e_✓s_✓o_✓u_✓r_✓c_✓e names and scale factors, unambiguous prefixes of
  883.           the names suffice.
  884.  
  885.      login
  886.           Terminate a login shell, replacing it with an instance of
  887.           /bin/login. This is one way to log off, included for compatibility
  888.           with _✓s_✓h(1).
  889.  
  890.      logout
  891.           Terminate a login shell.  Especially useful if _✓i_✓g_✓n_✓o_✓r_✓e_✓e_✓o_✓f is set.
  892.  
  893.      nice
  894.      nice +number
  895.      nice command
  896.      nice +number command
  897.           The first form sets the _✓n_✓i_✓c_✓e for this shell to 4.  The second form
  898.           sets the _✓n_✓i_✓c_✓e to the given number.  The final two forms run command
  899.           at priority 4 and _✓n_✓u_✓m_✓b_✓e_✓r respectively.  The super-user may specify
  900.           negative niceness by using `nice -number ...'.  Command is always
  901.           executed in a sub-shell, and the restrictions place on commands in
  902.           simple _✓i_✓f statements apply.
  903.  
  904.      nohup
  905.      nohup command
  906.           The first form can be used in shell scripts to cause hangups to be
  907.           ignored for the remainder of the script.  The second form causes
  908.           the specified command to be run with hangups ignored.  All
  909.           processes detached with `&' are effectively _✓n_✓o_✓h_✓u_✓p'_✓e_✓d.
  910.  
  911.      notify
  912.      notify %job ...
  913.           Causes the shell to notify the user asynchronously when the status
  914.           of the current or specified jobs changes; normally notification is
  915.           presented before a prompt.  This is automatic if the shell variable
  916.           _✓n_✓o_✓t_✓i_✓f_✓y is set.
  917.  
  918.  
  919.      onintr
  920.      onintr  -
  921.      onintr  label
  922.           Control the action of the shell on interrupts.  The first form
  923.           restores the default action of the shell on interrupts which is to
  924.           terminate shell scripts or to return to the terminal command input
  925.           level.  The second form `onintr -' causes all interrupts to be
  926.           ignored.  The final form causes the shell to execute a `goto label'
  927.           when an interrupt is received or a child process terminates because
  928.           it was interrupted.
  929.  
  930.           In any case, if the shell is running detached and interrupts are
  931.           being ignored, all forms of _✓o_✓n_✓i_✓n_✓t_✓r have no meaning and interrupts
  932.           continue to be ignored by the shell and all invoked commands.
  933.  
  934.      popd
  935.      popd +n
  936.           Pops the directory stack, returning to the new top directory.  With
  937.           a argument `+_✓n' discards the _✓nth entry in the stack.  The elements
  938.           of the directory stack are numbered from 0 starting at the top.
  939.  
  940.      pushd
  941.      pushd name
  942.      pushd +n
  943.           With no arguments, pushd exchanges the top two elements of the
  944.           directory stack.  Given a _✓n_✓a_✓m_✓e argument, pushd changes to the new
  945.           directory (using _✓c_✓d) and pushes the old current working directory
  946.           (as in _✓c_✓s_✓w) onto the directory stack.  With a numeric argument,
  947.           rotates the _✓nth argument of the directory stack around to be the
  948.           top element and changes to it.  The members of the directory stack
  949.           are numbered from the top starting at 0.
  950.  
  951.      rehash
  952.           Causes the internal hash table of the contents of the directories
  953.           in the _✓p_✓a_✓t_✓h variable to be recomputed.  This is needed if new com-
  954.           mands are added to directories in the _✓p_✓a_✓t_✓h while you are logged in.
  955.           This should only be necessary if you add commands to one of your
  956.           own directories, or if a systems programmer changes the contents of
  957.           one of the system directories.
  958.  
  959.      repeat count command
  960.           The specified _✓c_✓o_✓m_✓m_✓a_✓n_✓d which is subject to the same restrictions as
  961.           the _✓c_✓o_✓m_✓m_✓a_✓n_✓d in the one line _✓i_✓f statement above, is executed _✓c_✓o_✓u_✓n_✓t
  962.           times.  I/O redirections occur exactly once, even if _✓c_✓o_✓u_✓n_✓t is 0.
  963.  
  964.      set
  965.      set name
  966.      set name=word
  967.      set name[index]=word
  968.      set name=(wordlist)
  969.           The first form of the command shows the value of all shell vari-
  970.           ables.  Variables which have other than a single word as value
  971.           print as a parenthesized word list.  The second form sets _✓n_✓a_✓m_✓e to
  972.           the null string.  The third form sets _✓n_✓a_✓m_✓e to the single _✓w_✓o_✓r_✓d. The
  973.           fourth form sets the _✓i_✓n_✓d_✓e_✓x'_✓t_✓h component of name to word; this com-
  974.           ponent must already exist.  The final form sets _✓n_✓a_✓m_✓e to the list of
  975.           words in _✓w_✓o_✓r_✓d_✓l_✓i_✓s_✓t. In all cases the value is command and file name
  976.           expanded.
  977.  
  978.           These arguments may be repeated to set multiple values in a single
  979.           set command.  Note however, that variable expansion happens for all
  980.           arguments before any setting occurs.
  981.  
  982.      setenv name value
  983.           Sets the value of environment variable _✓n_✓a_✓m_✓e to be _✓v_✓a_✓l_✓u_✓e, a single
  984.           string.  The most commonly used environment variable USER, TERM,
  985.           and PATH are automatically imported to and exported from the _✓c_✓s_✓h
  986.           variables _✓u_✓s_✓e_✓r, _✓t_✓e_✓r_✓m, and _✓p_✓a_✓t_✓h; there is no need to use _✓s_✓e_✓t_✓e_✓n_✓v for
  987.           these.
  988.  
  989.      shift
  990.  
  991.      shift variable
  992.           The members of _✓a_✓r_✓g_✓v are shifted to the left, discarding _✓a_✓r_✓g_✓v[_✓1]. It
  993.           is an error for _✓a_✓r_✓g_✓v not to be set or to have less than one word as
  994.           value.  The second form performs the same function on the specified
  995.           variable.
  996.  
  997.      source name
  998.      source -h name
  999.           The shell reads commands from _✓n_✓a_✓m_✓e. _✓S_✓o_✓u_✓r_✓c_✓e commands may be nested;
  1000.           if they are nested too deeply the shell may run out of file
  1001.           descriptors.  An error in a _✓s_✓o_✓u_✓r_✓c_✓e at any level terminates all
  1002.           nested _✓s_✓o_✓u_✓r_✓c_✓e commands.  Normally input during _✓s_✓o_✓u_✓r_✓c_✓e commands is
  1003.           not placed on the history list; the -h option causes the commands
  1004.           to be placed in the history list without being executed.
  1005.  
  1006.      stop
  1007.      stop %job ...
  1008.           Stops the current or specified job which is executing in the back-
  1009.           ground.
  1010.  
  1011.      suspend
  1012.           Causes the shell to stop in its tracks, much as if it had been sent
  1013.           a stop signal with ^Z.  This is most often used to stop shells
  1014.           started by _✓s_✓u(1).
  1015.  
  1016.      switch (string)
  1017.      case str1:
  1018.          ...
  1019.        breaksw
  1020.      ...
  1021.      default:
  1022.          ...
  1023.        breaksw
  1024.      endsw
  1025.           Each case label is successively matched, against the specified
  1026.           _✓s_✓t_✓r_✓i_✓n_✓g which is first command and file name expanded.  The file
  1027.           metacharacters `*', `?' and `[...]' may be used in the case labels,
  1028.           which are variable expanded.  If none of the labels match before a
  1029.           `default' label is found, then the execution begins after the
  1030.           default label.  Each case label and the default label must appear
  1031.           at the beginning of a line.  The command _✓b_✓r_✓e_✓a_✓k_✓s_✓w causes execution
  1032.           to continue after the _✓e_✓n_✓d_✓s_✓w. Otherwise control may fall through
  1033.           case labels and default labels as in C.  If no label matches and
  1034.           there is no default, execution continues after the _✓e_✓n_✓d_✓s_✓w.
  1035.  
  1036.      time
  1037.      time command
  1038.           With no argument, a summary of time used by this shell and its
  1039.           children is printed.  If arguments are given the specified simple
  1040.           command is timed and a time summary as described under the _✓t_✓i_✓m_✓e
  1041.           variable is printed.  If necessary, an extra shell is created to
  1042.           print the time statistic when the command completes.
  1043.  
  1044.      umask
  1045.      umask value
  1046.           The file creation mask is displayed (first form) or set to the
  1047.           specified value (second form).  The mask is given in octal.  Common
  1048.           values for the mask are 002 giving all access to the group and read
  1049.           and execute access to others or 022 giving all access except no
  1050.           write access for users in the group or others.
  1051.  
  1052.      unalias pattern
  1053.           All aliases whose names match the specified pattern are discarded.
  1054.           Thus all aliases are removed by `unalias *'.  It is not an error
  1055.           for nothing to be _✓u_✓n_✓a_✓l_✓i_✓a_✓s_✓e_✓d.
  1056.  
  1057.      unhash
  1058.           Use of the internal hash table to speed location of executed pro-
  1059.           grams is disabled.
  1060.  
  1061.      unlimit _✓r_✓e_✓s_✓o_✓u_✓r_✓c_✓e
  1062.      unlimit
  1063.           Removes the limitation on _✓r_✓e_✓s_✓o_✓u_✓r_✓c_✓e.  If no _✓r_✓e_✓s_✓o_✓u_✓r_✓c_✓e is specified,
  1064.           then all _✓r_✓e_✓s_✓o_✓u_✓r_✓c_✓e limitations are removed.
  1065.  
  1066.      unset pattern
  1067.           All variables whose names match the specified pattern are removed.
  1068.           Thus all variables are removed by `unset *'; this has noticeably
  1069.           distasteful side-effects.  It is not an error for nothing to be
  1070.           _✓u_✓n_✓s_✓e_✓t.
  1071.  
  1072.      unsetenv pattern
  1073.           Removes all variables whose name match the specified pattern from
  1074.           the environment.  See also the _✓s_✓e_✓t_✓e_✓n_✓v command above and _✓p_✓r_✓i_✓n_✓-
  1075.           _✓t_✓e_✓n_✓v(1).
  1076.  
  1077.      wait
  1078.           All background jobs are waited for.  It the shell is interactive,
  1079.           then an interrupt can disrupt the wait, at which time the shell
  1080.           prints names and job numbers of all jobs known to be outstanding.
  1081.  
  1082.      while (expr)
  1083.          ...
  1084.      end
  1085.           While the specified expression evaluates non-zero, the commands
  1086.           between the _✓w_✓h_✓i_✓l_✓e and the matching end are evaluated.  _✓B_✓r_✓e_✓a_✓k and
  1087.           _✓c_✓o_✓n_✓t_✓i_✓n_✓u_✓e may be used to terminate or continue the loop prematurely.
  1088.           (The _✓w_✓h_✓i_✓l_✓e and _✓e_✓n_✓d must appear alone on their input lines.) Prompt-
  1089.           ing occurs here the first time through the loop as for the _✓f_✓o_✓r_✓e_✓a_✓c_✓h
  1090.           statement if the input is a terminal.
  1091.  
  1092.      %job
  1093.           Brings the specified job into the foreground.
  1094.  
  1095.      %job &
  1096.           Continues the specified job in the background.
  1097.  
  1098.      @
  1099.      @ name = expr
  1100.      @ name[index] = expr
  1101.           The first form prints the values of all the shell variables.  The
  1102.           second form sets the specified _✓n_✓a_✓m_✓e to the value of _✓e_✓x_✓p_✓r. If the
  1103.           expression contains `<', `>', `&' or `|' then at least this part of
  1104.           the expression must be placed within `(' `)'.  The third form
  1105.           assigns the value of _✓e_✓x_✓p_✓r to the _✓i_✓n_✓d_✓e_✓x'_✓t_✓h argument of _✓n_✓a_✓m_✓e. Both
  1106.           _✓n_✓a_✓m_✓e and its _✓i_✓n_✓d_✓e_✓x'_✓t_✓h component must already exist.
  1107.  
  1108.           The operators `*=', `+=', etc are available as in C.  The space
  1109.           separating the name from the assignment operator is optional.
  1110.           Spaces are, however, mandatory in separating components of _✓e_✓x_✓p_✓r
  1111.           which would otherwise be single words.
  1112.  
  1113.           Special postfix `++' and `--' operators increment and decrement
  1114.           _✓n_✓a_✓m_✓e respectively, that is `@  i++'.
  1115.  
  1116.  
  1117.    Pre-defined And Environment Variables
  1118.      The following variables have special meaning to the shell.  Of these,
  1119.      _✓a_✓r_✓g_✓v, _✓c_✓w_✓d, _✓h_✓o_✓m_✓e, _✓p_✓a_✓t_✓h, _✓p_✓r_✓o_✓m_✓p_✓t, _✓s_✓h_✓e_✓l_✓l and _✓s_✓t_✓a_✓t_✓u_✓s are always set by the
  1120.      shell.  Except for _✓c_✓w_✓d and _✓s_✓t_✓a_✓t_✓u_✓s this setting occurs only at initiali-
  1121.      zation; these variables will not then be modified unless this is done
  1122.      explicitly by the user.
  1123.  
  1124.      This shell copies the environment variable USER into the variable _✓u_✓s_✓e_✓r,
  1125.      TERM into _✓t_✓e_✓r_✓m, and HOME into _✓h_✓o_✓m_✓e, and copies these back into the
  1126.      environment whenever the normal shell variables are reset.  The environ-
  1127.      ment variable PATH is likewise handled.  It is not necessary to worry
  1128.      about its setting other than in the file ._✓c_✓s_✓h_✓r_✓c as inferior _✓c_✓s_✓h
  1129.      processes will import the definition of _✓p_✓a_✓t_✓h from the environment, and
  1130.      re-export it if you then change it.
  1131.  
  1132.      argv           Set to the arguments to the shell, it is from this vari-
  1133.                     able that positional parameters are substituted, that is
  1134.                     `$1' is replaced by `$argv[1]', and so forth.
  1135.  
  1136.      cdpath         Gives a list of alternate directories searched to find
  1137.                     subdirectories in _✓c_✓h_✓d_✓i_✓r commands.
  1138.  
  1139.      cwd            The full pathname of the current directory.
  1140.  
  1141.      echo           Set when the -x command line option is given.  Causes
  1142.                     each command and its arguments to be echoed just before
  1143.                     it is executed.  For non-built-in commands all expansions
  1144.                     occur before echoing.  Built-in commands are echoed
  1145.                     before command and file name substitution, since these
  1146.                     substitutions are then done selectively.
  1147.  
  1148.      histchars      Can be given a string value to change the characters used
  1149.                     in history substitution.  The first character of its
  1150.                     value is used as the history substitution character,
  1151.                     replacing the default character !.  The second character
  1152.                     of its value replaces the character ! in quick substitu-
  1153.                     tions.
  1154.  
  1155.      history        Can be given a numeric value to control the size of the
  1156.                     history list.  Any command which has been referenced in
  1157.                     this many events will not be discarded.  Too large values
  1158.                     of _✓h_✓i_✓s_✓t_✓o_✓r_✓y may run the shell out of memory.  The last
  1159.                     executed command is always saved on the history list.
  1160.  
  1161.      home           The home directory of the invoker, initialized from the
  1162.                     environment.  The file name expansion of `~' refers to
  1163.                     this variable.
  1164.  
  1165.      ignoreeof      If set the shell ignores end-of-file from input devices
  1166.                     which are terminals.  This prevents shells from acciden-
  1167.                     tally being killed by control-D's.
  1168.  
  1169.      mail           The files where the shell checks for mail.  This is done
  1170.                     after each command completion which will result in a
  1171.                     prompt, if a specified interval has elapsed.  The shell
  1172.                     says `You have new mail.' if the file exists with an
  1173.                     access time not greater than its modify time.
  1174.  
  1175.                     If the first word of the value of _✓m_✓a_✓i_✓l is numeric it
  1176.                     specifies a different mail checking interval, in seconds,
  1177.                     than the default, which is 10 minutes.
  1178.  
  1179.                     If multiple mail files are specified, then the shell says
  1180.                     `New mail in _✓n_✓a_✓m_✓e' when there is mail in the file _✓n_✓a_✓m_✓e.
  1181.  
  1182.      noclobber      As described in the section on _✓I_✓n_✓p_✓u_✓t/_✓o_✓u_✓t_✓p_✓u_✓t, restrictions
  1183.                     are placed on output redirection to insure that files are
  1184.                     not accidentally destroyed, and that `>>' redirections
  1185.                     refer to existing files.
  1186.  
  1187.      noglob         If set, file name expansion is inhibited.  This is most
  1188.                     useful in shell scripts which are not dealing with file
  1189.                     names, or after a list of file names has been obtained
  1190.                     and further expansions are not desirable.
  1191.  
  1192.      nonomatch      If set, it is not an error for a file name expansion to
  1193.                     not match any existing files; rather the primitive pat-
  1194.                     tern is returned.  It is still an error for the primitive
  1195.                     pattern to be malformed, that is `echo [' still gives an
  1196.                     error.
  1197.  
  1198.      notify         If set, the shell notifies asynchronously of job comple-
  1199.                     tions.  The default is to rather present job completions
  1200.                     just before printing a prompt.
  1201.  
  1202.      path           Each word of the path variable specifies a directory in
  1203.                     which commands are to be sought for execution.  A null
  1204.                     word specifies the current directory.  If there is no
  1205.                     _✓p_✓a_✓t_✓h variable then only full path names will execute.
  1206.                     The usual search path is `.', `/bin' and `/usr/bin', but
  1207.                     this may vary from system to system.  For the super-user
  1208.                     the default search path is `/etc', `/bin' and `/usr/bin'.
  1209.                     A shell which is given neither the -c nor the -t option
  1210.                     will normally hash the contents of the directories in the
  1211.                     _✓p_✓a_✓t_✓h variable after reading ._✓c_✓s_✓h_✓r_✓c, and each time the
  1212.                     _✓p_✓a_✓t_✓h variable is reset.  If new commands are added to
  1213.                     these directories while the shell is active, it may be
  1214.                     necessary to give the _✓r_✓e_✓h_✓a_✓s_✓h or the commands may not be
  1215.                     found.
  1216.  
  1217.      prompt         The string which is printed before each command is read
  1218.                     from an interactive terminal input.  If a `!' appears in
  1219.                     the string it will be replaced by the current event
  1220.                     number unless a preceding `\' is given.  Default is `% ',
  1221.                     or `# ' for the super-user.
  1222.  
  1223.      savehist       is given a numeric value to control the number of entries
  1224.                     of the history list that are saved in ~/.history when the
  1225.                     user logs out.  Any command which has been referenced in
  1226.                     this many events will be saved.  During start up the
  1227.                     shell sources ~/.history into the history list enabling
  1228.                     history to be saved across logins.  Too large values of
  1229.                     _✓s_✓a_✓v_✓e_✓h_✓i_✓s_✓t will slow down the shell during start up.
  1230.  
  1231.      shell          The file in which the shell resides.  This is used in
  1232.                     forking shells to interpret files which have execute bits
  1233.                     set, but which are not executable by the system.  (See
  1234.                     the description of _✓N_✓o_✓n-_✓b_✓u_✓i_✓l_✓t-_✓i_✓n _✓C_✓o_✓m_✓m_✓a_✓n_✓d _✓E_✓x_✓e_✓c_✓u_✓t_✓i_✓o_✓n below.)
  1235.                     Initialized to the (system-dependent) home of the shell.
  1236.  
  1237.      status         The status returned by the last command.  If it ter-
  1238.                     minated abnormally, then 0200 is added to the status.
  1239.                     Built-in commands which fail return exit status `1', all
  1240.                     other built-in commands set status `0'.
  1241.  
  1242.      time           Controls automatic timing of commands.  If set, then any
  1243.                     command which takes more than this many cpu seconds will
  1244.                     cause a line giving user, system, and real times and a
  1245.                     utilization percentage which is the ratio of user plus
  1246.                     system times to real time to be printed when it ter-
  1247.                     minates.  The time command can be used to cause a command
  1248.                     to be timed no matter how much CPU time it takes.  Thus
  1249.  
  1250.                     % time cp /etc/rc /usr/bill/rc
  1251.                     0.0u 0.1s 0:01 8% 2+1k 3+2io 1pf+0w
  1252.                     % time wc /etc/rc /usr/bill/rc
  1253.                       52   178  1347 /etc/rc
  1254.                       52   178  1347 /usr/bill/rc
  1255.                       104  356  2694 total
  1256.                     0.1u 0.1s 0:00 13% 3+3k 5+3io 7pf+0w
  1257.                     %
  1258.  
  1259.                     The preceding example indicates that the _✓c_✓p command used
  1260.                     a negligible amount of user time (u) and about 1/10th of
  1261.                     a second system time (s); the elapsed time was 1 second
  1262.                     (0:01), there was an average memory usage of 2k bytes of
  1263.                     program space and 1k bytes of data space over the cpu
  1264.                     time involved (2+1k); the program did three disk reads
  1265.                     and two disk writes (3+2io), and took one page fault and
  1266.                     was not swapped (1pf+0w).  The word count command _✓w_✓c on
  1267.                     the other hand used 0.1 seconds of user time and 0.1
  1268.                     seconds of system time in less than a second of elapsed
  1269.                     time.  The percentage `13%' indicates that over the
  1270.                     period when it was active the command `wc' used an aver-
  1271.                     age of 13 percent of the available CPU cycles of the
  1272.                     machine.
  1273.  
  1274.      verbose        Set by the -v command line option, causes the words of
  1275.                     each command to be printed after history substitution.
  1276.  
  1277.    Non-built-in Command Execution
  1278.      When a command to be executed is found to not be a built-in command the
  1279.      shell attempts to execute the command via _✓e_✓x_✓e_✓c_✓v_✓e(2).  Each word in the
  1280.      variable _✓p_✓a_✓t_✓h names a directory from which the shell will attempt to
  1281.      execute the command.  If it is given neither a -c nor a -t option, the
  1282.      shell will hash the names in these directories into an internal table so
  1283.      that it will only try an _✓e_✓x_✓e_✓c in a directory if there is a possibility
  1284.      that the command resides there.  This greatly speeds command location
  1285.      when a large number of directories are present in the search path.  If
  1286.      this mechanism has been turned off (via _✓u_✓n_✓h_✓a_✓s_✓h), or if the shell was
  1287.      given a -c or -t argument, and in any case for each directory component
  1288.      of _✓p_✓a_✓t_✓h which does not begin with a `/', the shell concatenates with the
  1289.      given command name to form a path name of a file which it then attempts
  1290.      to execute.
  1291.  
  1292.      Parenthesized commands are always executed in a subshell.  Thus `(cd ;
  1293.      pwd) ; pwd' prints the _✓h_✓o_✓m_✓e directory; leaving you where you were
  1294.      (printing this after the home directory), while `cd ; pwd' leaves you in
  1295.      the _✓h_✓o_✓m_✓e directory.  Parenthesized commands are most often used to
  1296.      prevent _✓c_✓h_✓d_✓i_✓r from affecting the current shell.
  1297.  
  1298.      If the file has execute permissions but is not an executable binary to
  1299.      the system, then it is assumed to be a file containing shell commands
  1300.      and a new shell is spawned to read it.
  1301.  
  1302.      If there is an _✓a_✓l_✓i_✓a_✓s for _✓s_✓h_✓e_✓l_✓l then the words of the alias will be
  1303.      prepended to the argument list to form the shell command.  The first
  1304.      word of the _✓a_✓l_✓i_✓a_✓s should be the full path name of the shell (for exam-
  1305.      ple, `$shell').  Note that this is a special, late occurring, case of
  1306.      _✓a_✓l_✓i_✓a_✓s substitution, and only allows words to be prepended to the argu-
  1307.      ment list without modification.
  1308.  
  1309.    Argument List Processing
  1310.      If argument 0 to the shell is `-' then this is a login shell.  The flag
  1311.      arguments are interpreted as follows:
  1312.  
  1313.      -c   The first argument word is taken to be a command string.  All
  1314.           remaining argument words are placed in _✓a_✓r_✓g_✓v.
  1315.  
  1316.      -e   The shell exits if any invoked command terminates abnormally or
  1317.           yields a non-zero exit status.
  1318.  
  1319.      -f   The shell will start faster, because it will neither search for nor
  1320.           execute commands from the file `.cshrc' in the invokers home
  1321.           directory.
  1322.  
  1323.      -i   The shell is interactive and prompts for its top-level input, even
  1324.           if stdin appears not to be a terminal.  Shells are interactive
  1325.           without this option if their inputs and outputs are terminals.
  1326.  
  1327.      -n   Commands are parsed, but not executed.  This aids in syntactic
  1328.           checking of shell scripts.
  1329.  
  1330.      -s   Command input is taken from the standard input.
  1331.  
  1332.      -t   A single line of input is read and executed.  A `\' may be used to
  1333.           escape the new line at the end of this line and continue onto
  1334.           another line.
  1335.  
  1336.      -v   Causes the _✓v_✓e_✓r_✓b_✓o_✓s_✓e variable to be set, with the effect that command
  1337.           input is echoed after history substitution.
  1338.  
  1339.      -x   Causes the _✓e_✓c_✓h_✓o variable to be set, so that commands are echoed
  1340.           immediately before execution.
  1341.  
  1342.      -V   Causes the _✓v_✓e_✓r_✓b_✓o_✓s_✓e variable to be set even before `.cshrc' is exe-
  1343.           cuted.
  1344.  
  1345.      -X   Causes the echo variable to be set before `.cshrc' is executed.
  1346.  
  1347.      After processing of flag arguments if arguments remain but none of the
  1348.      -c, -i, -s, or -t options was given the first argument is taken as the
  1349.      name of a file of commands to be executed.  The shell opens this file,
  1350.      and saves its name for possible resubstitution by `$0'.  Since many sys-
  1351.      tems use either the standard version 6 or version 7 shells whose shell
  1352.      scripts are not compatible with this shell, the shell will execute such
  1353.      a `standard' shell if the first character of a script is not a `#', that
  1354.      is if the script does not start with a comment.  Remaining arguments
  1355.      initialize the variable _✓a_✓r_✓g_✓v.
  1356.  
  1357.    Signal Handling
  1358.      The shell normally ignores _✓q_✓u_✓i_✓t signals.  Jobs running detached (either
  1359.      by `&' or the _✓b_✓g or %... & commands) are immune to signals generated
  1360.      from the keyboard, including hangups.  Other signals have the values
  1361.      which the shell inherited from its parent.  The shells handling of
  1362.      interrupts and terminate signals in shell scripts can be controlled by
  1363.      _✓o_✓n_✓i_✓n_✓t_✓r. Login shells catch the _✓t_✓e_✓r_✓m_✓i_✓n_✓a_✓t_✓e signal; otherwise this signal
  1364.      is passed on to children from the state in the shell's parent.  In no
  1365.      case are interrupts allowed when a login shell is reading the file
  1366.      `.logout'.
  1367.  
  1368.    Command And Filename Recognition
  1369.      The _✓c_✓s_✓h command recognizes and completes user name aliases, commands
  1370.      (including built-in _✓c_✓s_✓h commands), and filenames.  To use this feature,
  1371.      do the following:
  1372.  
  1373.      1. Type enough characters at the prompt to make your input to the system
  1374.         unique.
  1375.  
  1376.      2. Press the ESC key.
  1377.  
  1378.      If your input is unique, the Shell completes the input line.  If the
  1379.      input is not unique, the terminal signals you with a beep.  If you
  1380.      receive a beep, type CTRL/D for a list of options.  You can then type
  1381.      the additional characters that will make your text unique.  After you
  1382.      have provided more input, press the ESC key again.
  1383.  
  1384.  
  1385.  
  1386.  
  1387.    Restrictions
  1388.      Words can be no longer than 1024 characters.
  1389.  
  1390.      The system limits argument lists to 10240 characters.
  1391.  
  1392.      The number of arguments to a command which involves file name expansion
  1393.      is limited to 1/6'th the number of characters allowed in an argument
  1394.      list.
  1395.  
  1396.      Command substitutions may substitute no more characters than are allowed
  1397.      in an argument list.
  1398.  
  1399.      To detect looping, the shell restricts the number of _✓a_✓l_✓i_✓a_✓s substitutions
  1400.      on a single line to 20.
  1401.  
  1402.      When a command is restarted from a stop, the shell prints the directory
  1403.      it started in if this is different from the current directory; this can
  1404.      be misleading (that is, wrong) as the job may have changed directories
  1405.      internally.
  1406.  
  1407.      Shell built-in functions are not stoppable/restartable.  Command
  1408.      sequences of the form `a ; b ; c' are also not handled gracefully when
  1409.      stopping is attempted.  If you suspend `b', the shell will then immedi-
  1410.      ately execute `c'.  This is especially noticeable if this expansion
  1411.      results from an _✓a_✓l_✓i_✓a_✓s. It suffices to place the sequence of commands in
  1412.      ()'s to force it to a subshell, that is `( a ; b ; c )'.
  1413.  
  1414.      Commands within loops, prompted for by `?', are not placed in the _✓h_✓i_✓s_✓-
  1415.      _✓t_✓o_✓r_✓y list.  Control structure should be parsed rather than being recog-
  1416.      nized as built-in commands.  This would allow control commands to be
  1417.      placed anywhere, to be combined with `|', and to be used with `&' and
  1418.      `;' metasyntax.
  1419.  
  1420.      It should be possible to use the colon (:) modifiers on the output of
  1421.      command substitutions.  All and more than one colon (:) modifier should
  1422.      be allowed on `$' substitutions.
  1423.  
  1424.      Symbolic links fool the shell.  In particular, _✓d_✓i_✓r_✓s and `cd ..' don't
  1425.      work properly once you've crossed through a symbolic link.
  1426.  
  1427.    Files
  1428.      ~/.cshrc         Read at beginning of execution by each shell.
  1429.      ~/.login         Read by login shell, after `.cshrc' at login.
  1430.      ~/.logout        Read by login shell, at logout.
  1431.      /bin/sh          Standard shell, for shell scripts not starting with a `#'.
  1432.      /tmp/sh*         Temporary file for `<<'.
  1433.      /etc/passwd      Source of home directories for `~name'.
  1434.  
  1435.    See Also
  1436.      sh(1), time(1), access(2), execve(2), fork(2), killpg(2), pipe(2),
  1437.      sigvec(2), setrlimit(2), umask(2), wait(2), tty(4), a.out(5),
  1438.      environ(7), time(7)
  1439.      "An Introduction to the C shell", _✓S_✓u_✓p_✓p_✓l_✓e_✓m_✓e_✓n_✓t_✓a_✓r_✓y _✓D_✓o_✓c_✓u_✓m_✓e_✓n_✓t_✓s, _✓V_✓o_✓l_✓u_✓m_✓e _✓1:
  1440.      _✓G_✓e_✓n_✓e_✓r_✓a_✓l _✓U_✓s_✓e_✓r
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.